package com.weimob.mcloud.wechatwork.customer.mq.userPermission.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 数据隔离权限变更消息
 * @Author LeoLee
 * @Date 16:35 2022/8/22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PermissionChangeMsgDTO {

    /**
     * 员工id
     */
    @Deprecated
    private String employeeId;
    private List<EmployeeVidsDTO> employeeVidList;

    /**
     * 部门id
     */
    private String departmentId;

    /**
     * 部门code
     */
    private String departmentCode;

    /**
     * 1 员工 2 部门  3 全量部门同步
     */
    private Integer type;

    /**
     * 这里是该员工所有的vid,包含员工当前vid和上级vid
     */
    @Deprecated
    private List<Long> vidList;

    /**
     * corpId
     */
    private String corpId;

}
